<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str ="hello"
        var arr =[];
        for (var i in str){
            arr.push(str[i])
        }
        // console.log(arr)
        arr.splice(0,2);
        console.log(arr)
        arr.splice(2,1)
    </script>
</body>
</html>